<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of mManageUser
 *
 * @author SG10015
 */


$q = isset($_POST['q']) ? strval($_POST['q']) : '';
$rs = @mysql_query("SELECT CURR_CODE, CURR_DESC                          
                        FROM trv_mcurrency 
                       WHERE (CURR_CODE like '%".$q."%' or CURR_CODE like '%".$q."%') and CURR_ACTIVE='1'");
$rows = array();
while($row = @mysql_fetch_assoc($rs)){
	$rows[] = $row;
}
echo json_encode($rows);
?>
